home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / usr / lib / PHI / pcmcia-cs.postfixup < prev    next >
Encoding:
Text File  |  2002-07-26  |  591 b   |  22 lines

  1. #!/bin/sh
  2.  
  3. if [ -f /etc/sysconfig/pcmcia.rpmsave ] ; then
  4.     copyopts='PCMCIA PCIC PCIC_OPTS CORE_OPTS CARDMGR_OPTS'
  5.     daemonf=/etc/sysconfig/pcmcia
  6.     for opt in $copyopts ; do
  7.         opts=`get_val -f /etc/sysconfig/pcmcia.rpmsave $opt`
  8.         oldopts=`get_val -f $daemonf $opt`
  9.         # Only migrate values which are not empty.
  10.         # (might be discussable)
  11.         if [ -n "$opts" ]; then
  12.             echo "$daemonf setting $opt to $opts"
  13.             set_val -f $daemonf -- $opt "$opts"
  14.         fi
  15.     done
  16. fi
  17.  
  18. # rerun /sbin/hwprobe, in case we have a PCI CardBus bridge (this will change
  19. # the /etc/sysconfig/pcmcia script too.
  20.  
  21. /sbin/hwprobe
  22.